#include <stdio.h>
#include "esp_log.h"
#include "bsp_i2c.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "bsp_st7789.h"
#include "bsp_ft6336.h"
extern const unsigned char gImage_test_pic[153600];
void app_main(void)
{

    i2c_init();
    pca9557_init();

    st7789_init();
    bsp_ft6336_init();
    lcd_set_color(0x00ff);
    vTaskDelay(1000);
    lcd_set_color(0x0FF00);
    vTaskDelay(1000);
    lcd_set_color(0x1536);
    vTaskDelay(1000);
    HAL_LCD_fill(0, 0, 319, 239, (uint8_t *)gImage_test_pic);
    uint16_t x, y;
    while (1)
    {
        bsp_ft5x06_get_point(&x, &y);
        vTaskDelay(50);
    }
}
